package 内部类;
//方法内部类
public class Outer2 {

    public void show(){
        int a=1;
        int aaa=123;

        class Inner{
            int a = 2;
            int b = 3;
            private void print(){
                System.out.println(a);
                System.out.println(aaa);
                System.out.println(b);
            }
        }

        new Inner().print();
    }

    public static void main(String[] args) {
        new Outer2().show();
    }
}

